from django.contrib import admin
from player.models import Player, OCBPlayer, Ally

class PlayerAdmin(admin.ModelAdmin):
    list_display=('hyp_rank','nickname', 'idr_score','influence_score')
    list_display_links = ('nickname',)
    list_filter = ('hyp_rank',)
    
admin.site.register(Player, PlayerAdmin)

class OCBPlayerAdmin(admin.ModelAdmin):
    list_display=('user','player')
    list_display_links = ('player',)
admin.site.register(OCBPlayer, OCBPlayerAdmin)

class AllyAdmin(admin.ModelAdmin):
    list_display = ('alliance_tag','name')
    list_display_links = ('alliance_tag',)
admin.site.register(Ally, AllyAdmin)
